package com.hoshiicloud.goods.mapper.goods;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hoshiicloud.goods.entity.goods.GoodsCategorySpec;
import com.hoshiicloud.goods.entity.goods.GoodsSpecifications;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类目规格
 * @author linjx on 2019/7/25
 */
public interface GoodsCategorySpecMapper extends BaseMapper<GoodsCategorySpec> {
    Integer deleteByCategoryId(@Param("categoryId") Long categoryId);

    /**
     *
     * @param categoryId
     * @return
     */
    List<GoodsSpecifications> listGoodsCategorySpecByCategoryId(@Param("categoryId") Long categoryId);
}
